<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

        const obj= {foo:1}
        const p = new Proxy(obj,{
            deleteProperty(target,key){
                return Reflect.deleteProperty(target,key)
            }
        });
        console.log(p.foo);
        delete p.foo;
        console.log(p.foo);
        console.log(obj.foo);
    </script>
</body>
</html>